package br.org.credfaz.sis.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.org.credfaz.sis.dao.TceLancamentoCcaDAO;
import br.org.credfaz.sis.modelo.TceLancamentoCca;

public class AtualizaTceLancafmentoccaAction {
	
private List<TceLancamentoCca> lanc;
	
	@Action(value="atualizaLancamentocca", results= {
			@Result (name="ok", type="redirectAction", params= {"actionName", "atualizaPagamentos"})
	})
	public String execute(){
		lanc = new TceLancamentoCcaDAO().lista();
		return "ok";
	}
	public List<TceLancamentoCca> getTceLancamentoCca(){
		return lanc;
	}

}
